<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>业务管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
            $("#btnbuttom").click(function () {
                var id = "${firm.id}";
                var sbZd = $("#sbZd").val();
                var parm = {};
                parm["id"]=id;parm["sbZd"]=sbZd;
                $.ajax({
                    type : "POST",  //提交方式
                    url : "${ctx}/sys/firm/firm/savesbZd",//路径
                    data : parm,//数据，这里使用的是Json格式进行传输
                    success : function(data) {//返回数据根据结果进行相应的处理
                        if(data){
                            layer.msg("伤病诊断信息保存成功",{offset:'150px'},function(){
                                var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
                                parent.layer.close(index); //再执行关闭
                                window.parent.location.reload();
                            });
                        }else{
                            layer.msg("伤病诊断信息保存失败",{offset:'150px'},function() {
                                var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
                                parent.layer.close(index); //再执行关闭
                                window.parent.location.reload();
                            });
                        }
                    }
                });
            })
		});
	</script>
</head>
<body>
<ul class="nav nav-tabs">
	<li class="active"><a href="#">备注信息<shiro:hasPermission name="sys:firm:firm:edit">${not empty firm.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="sys:firm:firm:edit">查看</shiro:lacksPermission></a></li>
</ul><br/>
	<form:form id="inputForm" modelAttribute="customer" action="${ctx}/sys/customer/customer/save" method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>
		<div class="control-group">
			<label class="control-label">备注信息：</label>
			<div class="controls">
				<form:textarea path="Remarks" name="Remarks" htmlEscape="false" rows="5" maxlength="255"  class="input-xxlarge "/>
			</div>
		</div>
		<%--<div class="form-actions">--%>
			<%--<shiro:hasPermission name="sys:firm:firm:edit"><input id="btnbuttom" class="btn btn-primary" type="button" value="提交"/>&nbsp;</shiro:hasPermission>--%>
		<%--</div>--%>
		<%--<div class="form-actions">--%>
			<%--<shiro:hasPermission name="sys:firm:firm:edit"><input id="btnbuttom" class="btn btn-primary" type="button" value="提交"/>&nbsp;</shiro:hasPermission>--%>
		<%--</div>--%>
	</form:form>
</body>
</html>